package org.example.service;

import org.springframework.transaction.annotation.Transactional;

public interface AccountService {
    //@Transactional(propagation = Propagation.REQUIRED) //为此transfer方法添加事务机制
    @Transactional//为transfer添加事务机制
    void transfer(String outAccount, String inAccount, int money);



    //查询xxx
    /*@Transactional(propagation = Propagation.SUPPORTS)
    void getXxx();*/

}
